home *** CD-ROM | disk | FTP | other *** search
/ SGI Hot Mix 17 / Hot Mix 17.iso / HM17_SGI / research / examples / doc / clouds < prev    next >
Text File  |  1997-07-08  |  801b  |  27 lines

  1. ; This batch file defines variables used in the examples in 
  2. ; Chapter 11, "Plotting Multi-dimensional Arrays", of _Using IDL_.
  3.  
  4. ; Restore cloud data into the IDL variables "clouds" and "rain".
  5.  
  6. RESTORE, FILEPATH('clouds3d.dat', SUBDIR=['examples','data'])
  7.  
  8. ; Create the contour surface polygons (v and p) at density 0.1,
  9. ; from clouds. Show the low side.
  10.  
  11. SHADE_VOLUME, clouds, 0.1, v, p, /LOW
  12.  
  13. ; Obtain the dimensions of the volume. Variables S(1), S(2),
  14. ; and S(3) now contain the number of columns, rows, and slices
  15. ; in the volume.
  16.  
  17. s = SIZE(clouds)
  18.  
  19. ; Use SCALE3 to establish the three-dimensional transformation
  20. ; matrix. Rotate 45 degrees about the z-axis. 
  21.  
  22. SCALE3, XRANGE=[0,S(1)], YRANGE=[0,S(2)], ZRANGE=[0,S(3)], AX=0, AZ=45
  23.  
  24. ; Render and display the polygons.
  25.  
  26. TV, POLYSHADE(v, p, /T3D)
  27.